home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / Code / WINDOWS / DIALOGS / _jt456.as < prev   
Encoding:
Text File  |  2010-05-14  |  4.2 KB  |  117 lines

  1. package Code.WINDOWS.DIALOGS
  2. {
  3.    import Code.LIB._cg33;
  4.    import Code.LIB._ct751;
  5.    import Code.LIB._gt710;
  6.    import Code.LIB._my111;
  7.    import Code.LIB._rs402;
  8.    import Code.OPTIONS._gs337;
  9.    import Code.OPTIONS._vw297;
  10.    import Code._fi197;
  11.    import flash.display.Sprite;
  12.    import flash.events.Event;
  13.    import flash.events.MouseEvent;
  14.    import flash.text.TextField;
  15.    import flash.text.TextFieldType;
  16.    import flash.text.TextFormat;
  17.    
  18.    public class _jt456 extends _gt710
  19.    {
  20.       private var iCanceled:Boolean;
  21.       
  22.       public var iOk:_ct751;
  23.       
  24.       public var iCancel:_ct751;
  25.       
  26.       private var iAuto:Boolean;
  27.       
  28.       private var iInput:TextField;
  29.       
  30.       public function _jt456(param1:Boolean = false)
  31.       {
  32.          var _loc2_:Array = null;
  33.          var _loc3_:Sprite = null;
  34.          var _loc4_:TextFormat = null;
  35.          this.iAuto = param1;
  36.          _loc2_ = [[_fi197._ww533,_gs337.cGellRed,400,260,true,1,0,0,null,true],[_fi197._ww533,_gs337.cGellGreen,300,70,false,30,80,null,true],[_fi197._cx181,_gs337.iLanguage.strEnterName,_gs337.TColors,50,_my111.BigText,30,20,null,true],[_fi197._tr788,_gs337.iLanguage.strOk,_gs337.cGellGreen,110,50,28,_gs337.cWhite,35,175,"iOk",true],[_fi197._tr788,_gs337.iLanguage.strCancel,_gs337.cGellRed,110,50,28,_gs337.cWhite,220,175,"iCancel",true]];
  37.          super(_loc2_);
  38.          if(param1)
  39.          {
  40.             this.iCancel.visible = false;
  41.          }
  42.          _loc3_ = new _vw297.OFont() as Sprite;
  43.          this.iInput = TextField(_loc3_.getChildAt(0));
  44.          _loc4_ = new TextFormat();
  45.          _loc4_.color = _gs337.cWhite;
  46.          _loc4_.size = 40 * _rs402._oy577;
  47.          this.iInput.type = TextFieldType.INPUT;
  48.          this.iInput.width = 250 * _rs402._oy577;
  49.          this.iInput.height = 100 * _rs402._oy577;
  50.          this.iInput.x = 40 * _rs402._oy577;
  51.          this.iInput.y = 90 * _rs402._oy577;
  52.          this.iInput.defaultTextFormat = _loc4_;
  53.          this.iInput.maxChars = 10;
  54.          this.iInput.restrict = "A-Z a-z 0-9 ╨░-╤Å ╨É-╨»";
  55.          this.addChild(iInput);
  56.          this.iInput.text = "";
  57.          _rs402.prStage.focus = iInput;
  58.          this._xe768(100,100);
  59.       }
  60.       
  61.       override public function _ba289(param1:MouseEvent) : void
  62.       {
  63.          if(param1.target == this.iOk._en365)
  64.          {
  65.             this.iInput.text = iInput.text.toUpperCase();
  66.             if(this.iInput.text.length == 0 || this.iInput.text.indexOf("FUCK") != -1 || this.iInput.text.indexOf("BEATCH") != -1 || this.iInput.text.indexOf("BITCH") != -1 || this.iInput.text.indexOf("ASS") != -1 || this.iInput.text.indexOf("BICH") != -1 || this.iInput.text.indexOf("BEACH") != -1 || this.iInput.text.indexOf("FACK") != -1 || this.iInput.text.indexOf("HO") != -1 || this.iInput.text.indexOf("NIGER") != -1 || this.iInput.text.indexOf("NIGGA") != -1 || this.iInput.text.indexOf("PUSSY") != -1 || this.iInput.text.indexOf("PUZZY") != -1 || this.iInput.text.indexOf("PUSY") != -1 || this.iInput.text.indexOf("PUZZY") != -1)
  67.             {
  68.                this.iInput.text = "";
  69.                return;
  70.             }
  71.             if(iAuto)
  72.             {
  73.                _cg33._jq283(this.iInput.text);
  74.             }
  75.             this.iInput.visible = false;
  76.             this.iCanceled = false;
  77.             this.hide();
  78.          }
  79.          if(param1.target == this.iCancel._en365)
  80.          {
  81.             this.iInput.visible = false;
  82.             this.iCanceled = true;
  83.             this.hide();
  84.          }
  85.       }
  86.       
  87.       public function get _gn229() : String
  88.       {
  89.          if(iCanceled)
  90.          {
  91.             return null;
  92.          }
  93.          return this.iInput.text;
  94.       }
  95.       
  96.       override public function onEnterFrame(param1:Event) : void
  97.       {
  98.          super.onEnterFrame(param1);
  99.          if(this._hy116 && _rs402.prStage.focus != this.iInput)
  100.          {
  101.             _rs402.prStage.focus = this.iInput;
  102.          }
  103.       }
  104.       
  105.       override public function show() : void
  106.       {
  107.          super.show();
  108.          if(this.iInput)
  109.          {
  110.             this.iInput.visible = true;
  111.          }
  112.          _rs402.prStage.focus = iInput;
  113.       }
  114.    }
  115. }
  116.  
  117.